import {
    get,
    post,
    controller
} from "../lib/decorator";

@controller('api/v0/things')
export class thingController {
    @get('/')
    async index(ctx, next){
        let query = {}

        const things = await Thing.find(query)

        ctx.body = {
            success: true,
            data: things
        }
    }
}